<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
>
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
<h1>用户登录</h1>
<h2>
    <div th:text="${#request.getAttribute('SPRING_SECURITY_LAST_EXCEPTION')}"></div>
    <!--    <div th:text="${session.SPRING_SECURITY_LAST_EXCEPTION}"></div>-->
</h2>

<form method="post" th:action="@{/login}">
    <!--    用户名:<input type="text" name="username"><br>-->
    <!--    密码:<input type="text" name="password"><br>-->
    用户名:<input type="text" name="uname"><br>
    密码:<input type="text" name="pwd"><br>
    <input type="submit" value="登录">
</form>
</body>
</html>